using UnityEngine;

public struct ShotBullet
{
	public static int numCreatedBullets = -360000000;

	public int id;

	public float angle;

	public Vector2 rayPosition;

	public Vector2 rayDirection;

	public int maxHits;

	public ShotBullet(int maxHits, Vector2 rayPosition, float angle)
	{
		numCreatedBullets++;
		id = numCreatedBullets;
		this.maxHits = maxHits;
		this.rayPosition = rayPosition;
		this.angle = angle;
		rayDirection = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle));
	}
}
